/*
 * @Date: 2022-02-11 17:28:41
 * @LastEditors: huli
 */
import { http } from '@/utils/http'
// import { getToken } from '@/utils/auth'
class ManageService {
  // 获取图层
  // static getTree(params) {
  //   return http.get('/index/tree', params)
  // }
  // // 空间查询
  // static getAnalyse(params) {
  //   return http.post('/search/analyse', params)
  // }
  // // 设施专题列表
  // static getFind(params) {
  //   return http.get('/find/' + params)
  // }
  // // 设施专题详情
  // static getFindDetail(params) {
  //   return http.get('/findDetail', params)
  // }
  //快速查询
  static quick_search(params) {
    return http.post(
      '/analysis/quick_search?' + sessionStorage.getItem('xzq'),
      params
    )
  }
  //快速查询
  static post_booster(params) {
    return http.post(
      '/analysis/booster?' + sessionStorage.getItem('xzq'),
      params
    )
  }
  //材质统计
  static post_material(params) {
    return http.post(
      '/analysis/material?' + sessionStorage.getItem('xzq'),
      params
    )
  }
  //年限统计
  static post_year(params) {
    return http.post('/analysis/year?' + sessionStorage.getItem('xzq'), params)
  }
  //管径统计
  static post_gj(params) {
    return http.post('/analysis/gj?' + sessionStorage.getItem('xzq'), params)
  }
  //埋深统计
  static post_ms(params) {
    return http.post('/analysis/ms?' + sessionStorage.getItem('xzq'), params)
  }
  //埋设方式统计
  static post_msType(params) {
    return http.post(
      '/analysis/msType?' + sessionStorage.getItem('xzq'),
      params
    )
  }
  //管点类型统计
  static post_point_tz(params) {
    return http.post(
      '/analysis/point_tz?' + sessionStorage.getItem('xzq'),
      params
    )
  }
  //管线老化分析
  static post_line_ageing(params) {
    return http.post(
      '/analysis/line_ageing?' + sessionStorage.getItem('xzq'),
      params
    )
  }
  //范围获取
  static getGeom(params) {
    return http.get('/region/getGeom?' + sessionStorage.getItem('xzq'), params)
  }
  //管线高亮
  static year_line(params) {
    return http.get(
      '/analysis/year_line?' + sessionStorage.getItem('xzq'),
      params
    )
  }
  //埋设方式管线高亮
  static analysis_msLine(params) {
    return http.get('/analysis/msLine?' + sessionStorage.getItem('xzq'), params)
  }
  //埋设方式管线高亮
  static analysis_gjLine(params) {
    return http.get(
      '/analysis/gj_line?' + sessionStorage.getItem('xzq'),
      params
    )
  }
}

export default ManageService
